using UnityEngine;
using System.Collections;


public class GuiComponentDrawer : MonoBehaviour {

    // ----- configurable via Unity -------------------------------------------
    public GUISkin GuiSkin;


    // ----- internal methods -------------------------------------------------
    void OnGUI() {
        if (!OpenNISessionManager.InSession) {
            GUI.skin = Resources.Load(GuiSkin.name) as GUISkin;
            GUILayout.BeginArea(new Rect(Screen.width / 2 - 325, Screen.height / 2 - 10, 650, 100));
            GUILayout.Box("Do a push towards the screen to start");
            GUILayout.EndArea();
        }
    }
}
